package com.wuster.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.wuster.entity.po.StudentFreeTime;
import org.apache.ibatis.annotations.Select;

import java.sql.Date;

/**
 * 学生 空闲时间表
 */
public interface StudentFreeMapper extends BaseMapper<StudentFreeTime> {

    /**
     * 根据uid和日期查询用户空闲时间
     * @param uid
     * @param date
     * @return
     */
    @Select("select * from student_free where uid = #{uid} and day_date = #{date}")
    StudentFreeTime selectFree(Long uid, String date);
}
